﻿
using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace JuCloudy.Framework.Interface
{
    public interface IAuthentication<SsoUserInfo, AuthResult>
        where SsoUserInfo:class,new()
    {
        void CreateNewUser(SsoUserInfo UserInfo);
        void SetPassword(String MemberId, String Password);
        void SetPasswordByUserId(int UserId, String Password);
        bool UserNameExsit(String UserName);
        bool EmailExsit(String Email);
        bool TelPhoneExsit(String TelPhone);
        void ReSetPassword(String memberId);
        void ReSetPasswordByUserId(int UserId);
        AuthResult Connect(String UserName);
        AuthResult Login(String UserName, String Password, String IpAddress, out SsoUserInfo UserInfo);
    }
}
